package com.rc.saas.mini.model.rc;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.rc.saas.mini.common.base.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description
 * @Author
 * @Date: 2022-07-11
 */

@ApiModel(value = " rc_member_flag ", description = " 会员标识表 ")
public class RcMemberFlag extends BaseModel {

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "运营商")
    private String tenantCode;

    @ApiModelProperty(value = "是否为加盟商(0否 1是 默认0)")
    private String isOperator;

    @ApiModelProperty(value = "对应加盟商")
    private String operatorCode;

    @ApiModelProperty(value = "渠道商 0否 1是 默认0")
    private String isChannelLevel;

    @ApiModelProperty(value = "渠道商等级S0-S10")
    private String channelLevel;

    @ApiModelProperty(value = "会员 0否 1是 默认0")
    private String isMemberLevel;

    @ApiModelProperty(value = "冗余值 会员等级V0-V10")
    private String memberLevel;

    @ApiModelProperty(value = "会员子等级V1-1")
    private String subLevel;

    @ApiModelProperty(value = "企业会员 0否 1是 默认0")
    private String isEnterpriseLevel;

    @ApiModelProperty(value = "(弃用)对应企业会员等级 Ev0-Ev5")
    private String enterpriseLevel;

    @ApiModelProperty(value = "(弃用)所属企业ID")
    private Long enterpriseMemberId;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @ApiModelProperty(value = "null")
    private String lastUpdatedBy;

    @ApiModelProperty(value = "null")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdatedTime;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getIsOperator() {
        return isOperator;
    }

    public void setIsOperator(String isOperator) {
        this.isOperator = isOperator;
    }

    public String getOperatorCode() {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode) {
        this.operatorCode = operatorCode;
    }

    public String getIsChannelLevel() {
        return isChannelLevel;
    }

    public void setIsChannelLevel(String isChannelLevel) {
        this.isChannelLevel = isChannelLevel;
    }

    public String getChannelLevel() {
        return channelLevel;
    }

    public void setChannelLevel(String channelLevel) {
        this.channelLevel = channelLevel;
    }

    public String getIsMemberLevel() {
        return isMemberLevel;
    }

    public void setIsMemberLevel(String isMemberLevel) {
        this.isMemberLevel = isMemberLevel;
    }

    public String getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(String memberLevel) {
        this.memberLevel = memberLevel;
    }

    public String getSubLevel() {
        return subLevel;
    }

    public void setSubLevel(String subLevel) {
        this.subLevel = subLevel;
    }

    public String getIsEnterpriseLevel() {
        if (this.getEnterpriseId() != null) {
            return "1";
        }
        return isEnterpriseLevel;
    }

    public void setIsEnterpriseLevel(String isEnterpriseLevel) {
        this.isEnterpriseLevel = isEnterpriseLevel;
    }

    public String getEnterpriseLevel() {
        return enterpriseLevel;
    }

    public void setEnterpriseLevel(String enterpriseLevel) {
        this.enterpriseLevel = enterpriseLevel;
    }

    public Long getEnterpriseMemberId() {
        return enterpriseMemberId;
    }

    public void setEnterpriseMemberId(Long enterpriseMemberId) {
        this.enterpriseMemberId = enterpriseMemberId;
    }

    public Long getEnterpriseId() {
        return enterpriseId;
    }

    public void setEnterpriseId(Long enterpriseId) {
        this.enterpriseId = enterpriseId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }

}
